package com.ruoyi.backend.pojo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import com.ruoyi.backend.pojo.SurveyListData;

import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Survey {

    public interface Upload {
    }

    @NotNull(groups = {Survey.Upload.class}, message = "调查ID不能为空")
    private Integer investigateId;

    @JsonProperty("list")
    @NotNull(groups = {Survey.Upload.class}, message = "调查数据列表不能为空")
    private SurveyListData[] surveyDataList;

}
